body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: CustomFont, sans-serif;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#app {
  height: 100%;
}

html {
  font-size: 16px;
}

span, input {
  font-family: 'CustomFont', serif;
}

// 明亮主题变量
:root {
  // 基础颜色
  --color-bg: #F5F5F5;
  --color-card-bg: #FFFFFF;
  --color-record-card-bg: #F5F5DC;
  --color-comment-bg: #F5F5F5;
  --color-border-bg: #FFFFFF;
  --color-text: #000000;
}

// 暗黑主题变量
.dark {
  --color-bg: #000000;
  --color-card-bg: #000000;
  --color-record-card-bg: #4C4D4F;
  --color-comment-bg: #4C4D4F;
  --color-border-bg: #4C4D4F;
  --color-text: #FFFFFF;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
.dark::view-transition-old(root) {
  z-index: 9999;
}

@media (max-width: 1280px) {
  html {
    font-size: 13px;
  }
}

@font-face {
  font-family: 'CustomFont';
  src: url('@/assets/font/custom.woff2') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@import "//at.alicdn.com/t/c/font_4956432_h3acdgp5k3p.css";
